#include "stdafx.h"
#include "GeneCreateDataB.h"
#include "Manager/DataManagerIf.h"




GeneCreateDataB::GeneCreateDataB(int nID, int nGrpID)
:m_wpSData(NULL), m_nGeneGrpID(nGrpID), m_nGeneID(nID)
{

}

GeneCreateDataB::GeneCreateDataB(IData* pData)
:m_nGeneGrpID(0), m_nGeneID(0), m_wpSData(pData)
{

}

GeneCreateDataB::~GeneCreateDataB()
{

}

void
GeneCreateDataB::setID(int nID)
{
	m_nGeneID = nID;
}
int
GeneCreateDataB::getID()const
{
	return m_nGeneID;
}


void
GeneCreateDataB::setGroupID(int nGrpID)
{
	m_nGeneGrpID = nGrpID;
}
int
GeneCreateDataB::getGroupID()const
{
	return m_nGeneGrpID;
}

int
GeneCreateDataB::getClass()const
{
	return m_wpSData==NULL? 0 : m_wpSData->getGroupID();
}

int GeneCreateDataB::getDataX()const
{
	return m_nArgX;
}
int GeneCreateDataB::getDataY()const
{
	return m_nArgY;
}
int GeneCreateDataB::getDataZ()const
{
	return m_nArgZ;
}

void GeneCreateDataB::setDataX(int nArg)
{
	m_nArgX = nArg; 
}
void GeneCreateDataB::setDataY(int nArg)
{
	m_nArgY = nArg; 
}
void GeneCreateDataB::setDataZ(int nArg)
{
	m_nArgZ = nArg; 
}

int GeneCreateDataB::getData(const short& nIdx, int nDefault)const
{
	return nDefault;
}
void GeneCreateDataB::setData(const short& nIdx, int nValue)
{
}

IData*
GeneCreateDataB::getStaticData()
{
	static IDataManager*	s_wpGeneStaticDataManager = NULL;

	return NULL;
}

int
GeneCreateDataB::getDuration()const
{
	return 0;
}

int
GeneCreateDataB::getSrcEntityID()const
{
	return 0;
}

IEntity*
GeneCreateDataB::getSrcEntity()const
{
	return NULL;
}

IScene*
GeneCreateDataB::getSrcScene()const
{
	return NULL;
}